package com.johnsoft.pph.gui;

import java.awt.Dimension;
import java.awt.Graphics;

import javax.swing.JPanel;

import com.johnsoft.pph.Installer;

public class JBackground extends JPanel{
	
	public JBackground() {
		Dimension size = new Dimension(500, 350);
		setPreferredSize(size);
	    setMinimumSize(size);
	    setMaximumSize(size);
	    setSize(size);
	    setLayout(null);
	}

	public void paintComponent(Graphics g) {
		g.drawImage(Installer.background, 0, 0, 500, 350, 0, 0, Installer.background.getWidth(), Installer.background.getHeight(), null);
	}
	
}
